package homework02;

public class Student {
	private String id;
	private String name;
	private String sex;
	private String classAndGrade;

	public Student(String sid, String sname, String ssex, String sclassAndGrade) {
		this.id = sid;
		this.name = sname;
		this.sex = ssex;
		this.classAndGrade = sclassAndGrade;
	}

	public String getClassAndGrade() {
		return classAndGrade;
	}

	public void setClassAndGrade(String classAndGrade) {
		this.classAndGrade = classAndGrade;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Override
	public String toString() {
		return "学号：" + this.getId() + " 姓名：" + this.getName() + " 性别：" + this.getSex() + " 班级："
				+ this.getClassAndGrade();

	}
}
